.kb-rich-editor {
  --aie-bg-color: var(--kb-bg-color-container);
  --aie-border-color: var(--td-border-level-2-color);
  --aie-text-color: var(--td-text-color-primary);
  --aie-text-placeholder-color: var(--td-text-color-placeholder);
  --aie-button-bg-color: var(--td-bg-color-container);
  --aie-button-border-color: var(--td-border-level-2-color);
  --aie-button-hover-bg-color: var(--td-bg-color-container-hover);
  --aie-button-hover-border-color: var(--td-border-level-1-color);
  --aie-input-bg-color: var(--td-bg-color-specialcomponent);
  --aie-input-border-color: var(--td-border-level-2-color);
  --aie-input-focus-bg-color: var(--td-bg-color-specialcomponent);
  --aie-input-focus-border-color: var(--td-brand-color-focus);
  --aie-popover-bg-color: var(--td-bg-color-container);
  --aie-popover-border-color: var(--td-border-level-2-color);
  --aie-popover-title-color: var(--td-gray-color-8);
  --aie-popover-selected-color: var(--td-bg-color-container-hover);
  --aie-menus-text-color: var(--aie-text-color);
  --aie-menus-bg-color: var(--td-bg-color-container);
  --aie-menus-svg-color: var(--td-text-color-primary);
  --aie-menus-item-hover-color: var(--td-text-color-anti);
  --aie-menus-divider-color: var(--td-border-level-2-color);
  --aie-menus-ai-bg-color: var(--aie-menus-svg-color);
  --aie-menus-ai-color:var(--td-bg-color-container);
  --aie-menus-tip-bg-color: var(--td-gray-color-13);
  --aie-menus-tip-text-color: var(--td-text-color-anti);
  --aie-menus-table-cell-border-color: var(--td-border-level-2-color);
  --aie-menus-table-cell-border-active-color: var(--td-border-level-1-color);
  --aie-content-pre-bg-color: var(--kb-bg-color-component);
  --aie-content-blockquote-bg-color: var(--kb-bg-color-component);
  --aie-content-blockquote-border-color: var(--td-border-level-2-color);
  --aie-content-blockquote-text-color: var(--td-text-color-secondary);
  --aie-content-container-info-color: var(--kb-bg-color-component);
  --aie-content-container-warning-color: var(--td-warning-color);
  --aie-content-container-danger-color: var(--td-error-color);
  --aie-content-table-th-bg-color: var(--kb-bg-color-component);
  --aie-content-table-selected-bg-color: rgba(200, 200, 255, .3);
  --aie-content-table-border-color: var(--td-border-level-2-color);
  --aie-content-table-handler-color: var(--td-brand-color);
  --aie-content-scrollbar-track-piece: var(--td-scroll-track-color);
  --aie-content-scrollbar-thumb: var(--td-scrollbar-color);
  --aie-content-scrollbar-thumb-hover: var(--td-scrollbar-hover-color);
  --aie-content-scrollbar-thumb-active: var(--td-scrollbar-color);
  --aie-content-link-a-color: var(--td-brand-color);
  --aie-content-link-a-hover-color: var(--td-brand-color-hover);
  --aie-content-link-a-visited-color: var(--td-brand-color-focus);
  --aie-content-link-a-active-color: var(--td-brand-color-active);
}

.table-bubble-menu.colors-menu {
  display: flex;
  padding-right: 0
}

.table-bubble-menu.colors-menu .currentColor {
  width: 16px;
  height: 16px
}

.table-bubble-menu.colors-menu .currentColor .colors-menu-icon {
  height: calc(100% - 3px);
  width: 100%;
  display: flex
}

.table-bubble-menu.colors-menu .currentColor .colors-menu-icon svg {
  width: 100%;
  height: 100%
}

.table-bubble-menu.colors-menu .currentColor .colors-menu-status {
  width: 100%;
  height: 3px;
  background: #333
}

.table-bubble-menu.colors-menu .colors-menu #dropdown {
  display: flex
}

.table-bubble-menu.colors-menu .colors-menu-status {
  width: 100%;
  height: 3px;
  background: #333
}

.aie-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid;
  border-color: var(--aie-border-color);
  background: var(--aie-bg-color)
}

.aie-container *, .aie-container :before, .aie-container :after {
  box-sizing: content-box
}

.aie-container .aie-translate-panel {
  margin-top: -5px
}

.aie-container .aie-translate-panel-body {
  width: fit-content;
  border: solid 1px;
  border-color: var(--aie-popover-border-color);
  background: var(--aie-popover-bg-color);
  border-radius: 5px;
  box-shadow: 0 0 7px #00000026;
  display: flex;
  flex-direction: column;
  overflow: hidden
}

.aie-container .aie-translate-panel-body p {
  width: 100%;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 40px;
  line-height: 40px;
  font-weight: 600;
  font-size: 14px;
  padding: 0 20px;
  color: var(--aie-text-color);
  text-decoration: none;
  font-family: Arial, Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif
}

.aie-container .aie-translate-panel-body p:hover {
  background: var(--aie-menus-item-hover-color)
}

.aie-container .aie-translate-result-panel {
  width: fit-content;
  height: fit-content;
  border: solid 1px;
  border-color: var(--aie-popover-border-color);
  background: var(--aie-popover-bg-color);
  border-radius: 5px;
  box-shadow: 0 0 7px #00000040;
  overflow: hidden
}

.aie-container .aie-translate-result-panel textarea {
  width: calc(100vw - 120px);
  max-width: 500px;
  padding: 5px;
  box-sizing: border-box;
  font-size: 14px;
  font-family: Arial, Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif;
  border: none;
  margin: 10px 10px 0;
  background: var(--aie-popover-bg-color);
  color: var(--aie-text-color);
  resize: none;
  max-height: 300px
}

.aie-container .aie-translate-result-panel textarea:focus-visible {
  outline: 0
}

.aie-container .aie-translate-result-panel div {
  display: flex;
  justify-content: end;
  border-top: solid 1px var(--aie-popover-border-color);
  padding: 10px;
  background-color: var(--aie-popover-bg-color)
}

.aie-container .aie-translate-result-panel div button {
  margin-left: 10px;
  background: var(--aie-button-bg-color);
  color: var(--aie-text-color);
  border: solid 1px;
  padding: 5px 15px;
  font-size: 14px;
  border-radius: 3px;
  border-color: var(--aie-button-border-color);
  display: flex;
  align-items: center
}

.aie-container .aie-translate-result-panel div button svg {
  width: 16px;
  height: 16px;
  margin-right: 3px
}

.aie-container .aie-translate-result-panel div button:hover {
  background-color: var(--aie-button-hover-bg-color);
  cursor: pointer
}

.aie-container .aie-ai-panel-body {
  width: 500px;
  border: solid 1px;
  border-color: var(--aie-popover-border-color);
  background: var(--aie-popover-bg-color);
  border-radius: 5px;
  box-shadow: 0 0 7px #00000026;
  display: flex;
  flex-direction: column;
  overflow: hidden
}

.aie-container .aie-ai-panel-body-tips {
  width: 100%;
  padding: 10px;
  color: var(--aie-text-color);
  background-color: var(--aie-popover-bg-color);
  box-sizing: border-box;
  display: flex;
  align-items: center
}

.aie-container .aie-ai-panel-body-tips svg {
  width: 16px;
  height: 16px;
  margin-right: 5px
}

.aie-container .aie-ai-panel-body-content {
  width: 100%;
  position: relative
}

.aie-container .aie-ai-panel-body-content .loader {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none
}

.aie-container .aie-ai-panel-body-content .loader svg {
  width: 16px;
  color: #999;
  animation: rotate 2s linear infinite
}

.aie-container .aie-ai-panel-body-content textarea {
  width: 100%;
  height: 100%;
  max-height: 300px;
  padding: 15px;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.6em;
  font-family: Arial, Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif;
  border: none;
  resize: none;
  color: var(--aie-text-color);
  background-color: var(--aie-popover-bg-color)
}

.aie-container .aie-ai-panel-body-content textarea:focus-visible {
  outline: none
}

.aie-container .aie-ai-panel-body-input {
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  border-bottom: 1px solid;
  border-bottom-color: var(--aie-input-border-color);
  align-items: center;
  padding: 10px 20px 10px 10px
}

.aie-container .aie-ai-panel-body-input input {
  width: 92%;
  height: 100%;
  border: none;
  margin: 0;
  background: var(--aie-input-bg-color);
  font-size: 14px;
  font-family: Arial, Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 4px;
  color: var(--aie-text-color)
}

.aie-container .aie-ai-panel-body-input input::-webkit-input-placeholder {
  color: var(--aie-text-placeholder-color);
  font-size: 14px
}

.aie-container .aie-ai-panel-body-input input:focus-visible {
  outline: none
}

.aie-container .aie-ai-panel-body-input button {
  border: none;
  border-radius: 50%;
  padding: 0;
  background: #609eec
}

.aie-container .aie-ai-panel-body-input button svg {
  fill: #fff;
  width: 18px;
  margin-left: 2px;
  margin-top: 2px
}

.aie-container .aie-ai-panel-body-input button:hover {
  background: var(--aie-menus-item-hover-color);
  cursor: pointer
}

.aie-container .aie-ai-panel-footer {
  width: fit-content;
  border: solid 1px;
  border-color: var(--aie-popover-border-color);
  background: var(--aie-popover-bg-color);
  border-radius: 5px;
  box-shadow: 0 0 7px #00000026;
  display: flex;
  padding: 10px 0;
  flex-direction: column;
  margin-top: 5px
}

.aie-container .aie-ai-panel-footer-tips {
  padding: 5px 10px;
  color: var(--aie-text-color);
  margin-bottom: 5px
}

.aie-container .aie-ai-panel-footer hr {
  height: 1px;
  width: 100%;
  margin: 5px 0;
  background-color: var(--aie-popover-border-color);
  border: none
}

.aie-container .aie-ai-panel-footer p {
  width: 100%;
  margin: 0
}

.aie-container .aie-ai-panel-footer p {
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  line-height: 40px;
  font-weight: 600;
  font-size: 14px;
  padding: 0 20px;
  color: var(--aie-text-color);
  text-decoration: none;
  font-family: Arial, Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif
}

.aie-container .aie-ai-panel-footer p:hover {
  background: var(--aie-popover-selected-color)
}

.aie-container .aie-ai-panel-footer svg {
  width: 20px;
  height: 20px;
  margin-right: 10px
}

.aie-container aie-header {
  color: var(--aie-menus-text-color);
  background: var(--aie-menus-bg-color);
  z-index: 1
}

.aie-container aie-header > div {
  border-bottom: 1px solid var(--aie-border-color)
}

.aie-container aie-header .aie-menu-divider {
  background: var(--aie-menus-divider-color);
  width: 1px;
  height: 16px;
  margin: auto
}

.aie-container aie-header .aie-menu-item {
  height: fit-content;
  padding: 5px 1px;
  display: flex;
  align-items: center
}

.aie-container aie-header .aie-menu-item #text {
  font-size: 14px
}

.aie-container aie-header .aie-menu-item svg {
  fill: var(--aie-menus-svg-color);
  width: 16px;
  height: 16px
}

.aie-container aie-header .aie-menu-item .menu-ai {
  display: flex;
  align-items: center;
  font-size: 14px;
  text-align: center;
  background: var(--aie-menus-ai-bg-color);
  color: var(--aie-menus-ai-color);
  border-radius: 3px;
  width: 30px;
  padding: 0 1px 0 5px;
  white-space: nowrap
}

.aie-container aie-header .aie-menu-item .menu-ai svg {
  fill: var(--aie-menus-ai-color)
}

.aie-container aie-header .aie-menu-item .colors-menu {
  display: flex;
  padding-right: 0
}

.aie-container aie-header .aie-menu-item .colors-menu .currentColor {
  width: 16px;
  height: 16px
}

.aie-container aie-header .aie-menu-item .colors-menu .currentColor .colors-menu-icon {
  height: calc(100% - 3px);
  width: 100%;
  display: flex
}

.aie-container aie-header .aie-menu-item .colors-menu .currentColor .colors-menu-icon svg {
  width: 100%;
  height: 100%
}

.aie-container aie-header .aie-menu-item .colors-menu .currentColor .colors-menu-status {
  width: 100%;
  height: 3px;
  background: #333
}

.aie-container aie-header .aie-menu-item .colors-menu #dropdown {
  display: flex
}

.aie-container aie-header .aie-menu-item .active {
  background: var(--aie-menus-item-hover-color)
}

.aie-container aie-header .aie-menu-item[data-size=medium] #text {
  font-size: 16px
}

.aie-container aie-header .aie-menu-item[data-size=medium] svg {
  width: 20px;
  height: 20px
}

.aie-container aie-header .aie-menu-item[data-size=medium] .menu-ai svg {
  width: 16px;
  height: 16px
}

.aie-container aie-header .aie-menu-item[data-size=medium] .colors-menu .currentColor {
  width: 18px;
  height: 18px
}

.aie-container aie-header .aie-menu-item[data-size=large] #text {
  font-size: 17px
}

.aie-container aie-header .aie-menu-item[data-size=large] #text svg {
  width: 20px;
  height: 20px
}

.aie-container aie-header .aie-menu-item[data-size=large] svg {
  width: 24px;
  height: 24px
}

.aie-container aie-header .aie-menu-item[data-size=large] .menu-ai svg {
  width: 18px;
  height: 18px
}

.aie-container aie-header .aie-menu-item[data-size=large] .colors-menu .currentColor {
  width: 20px;
  height: 20px
}

.aie-container aie-header .aie-menu-item > div {
  height: 18px;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 3px
}

.aie-container aie-header .aie-menu-item > div:hover:not([no-hover]) {
  background: var(--aie-menus-item-hover-color)
}

.aie-container .aie-content:focus-visible {
  outline: none
}

.aie-container .aie-content ::selection {
  background: #88c6ff66
}

.aie-container .aie-content [contenteditable=true]::selection {
  background: #88c6ff66
}

.aie-container .aie-content [contenteditable=true]:focus-visible {
  outline: none
}

.aie-container .aie-content .selection-marker {
  background: #88c6ff66;
  padding: 0
}

.aie-container .suggestion {
  background: var(--aie-menus-bg-color);
  border-radius: 5px
}

.aie-container .suggestion .items {
  box-shadow: 0 0 7px #0000001a;
  overflow: hidden;
  border-radius: 5px;
  border: solid 1px;
  border-color: var(--aie-popover-border-color);
  background: var(--aie-popover-bg-color)
}

.aie-container .suggestion .items .item {
  display: block;
  height: 20px;
  width: 150px;
  margin: 0;
  color: var(--aie-text-color);
  background: var(--aie-menus-bg-color);
  border: none;
  text-align: left;
  padding: 10px 20px;
  cursor: pointer
}

.aie-container .suggestion .items .item-selected {
  background: var(--aie-popover-selected-color)
}

.aie-container .aie-bubble-menu {
  height: 30px;
  background: var(--aie-popover-bg-color);
  border: solid 1px var(--aie-popover-border-color);
  border-radius: 3px;
  box-shadow: 0 2px 5px 2px #0000001a;
  display: flex;
  align-items: center;
  padding: 5px;
  color: var(--aie-text-color)
}

.aie-container .aie-bubble-menu .active {
  background: var(--aie-menus-item-hover-color)
}

.aie-container .aie-bubble-menu-item {
  height: 20px;
  margin: 3px;
  padding: 5px;
  cursor: pointer;
  border-radius: 3px
}

.aie-container .aie-bubble-menu-item svg {
  width: 20px;
  height: 20px;
  fill: var(--aie-text-color)
}

.aie-container .aie-bubble-menu-item:hover {
  background: var(--aie-menus-item-hover-color)
}

.aie-container .aie-dropdown-container {
  background: var(--aie-popover-bg-color);
  border: solid 1px var(--aie-popover-border-color);
  overflow: auto;
  box-shadow: 0 2px 5px 2px #0000001a;
  padding: 5px 0;
  border-radius: 3px;
  color: var(--aie-menus-text-color)
}

.aie-container .aie-dropdown-container svg {
  fill: var(--aie-menus-text-color);
  width: 16px;
  height: 16px
}

.aie-container .aie-dropdown-container .aie-dropdown-item {
  display: flex;
  padding: 3px 0
}

.aie-container .aie-dropdown-container .aie-dropdown-item .text {
  padding: 2px 15px 0 0;
  overflow: hidden;
  font-size: 14px;
  display: flex
}

.aie-container .aie-dropdown-container .aie-dropdown-item .text svg {
  width: 18px;
  height: 18px
}

.aie-container .aie-dropdown-container .aie-dropdown-item .text h1, .aie-container .aie-dropdown-container .aie-dropdown-item .text h2, .aie-container .aie-dropdown-container .aie-dropdown-item .text h3, .aie-container .aie-dropdown-container .aie-dropdown-item .text h4, .aie-container .aie-dropdown-container .aie-dropdown-item .text h5, .aie-container .aie-dropdown-container .aie-dropdown-item .text h6 {
  padding: 0;
  margin: 0;
  border: none
}

.aie-container .aie-dropdown-container .aie-dropdown-item .text h1 {
  font-size: 1.7em
}

.aie-container .aie-dropdown-container .aie-dropdown-item .text h2 {
  font-size: 1.6em
}

.aie-container .aie-dropdown-container .aie-dropdown-item .text h3 {
  font-size: 1.5em
}

.aie-container .aie-dropdown-container .aie-dropdown-item .text h4 {
  font-size: 1.4em
}

.aie-container .aie-dropdown-container .aie-dropdown-item .text h5 {
  font-size: 1.3em
}

.aie-container .aie-dropdown-container .aie-dropdown-item .text h6 {
  font-size: 1.2em
}

.aie-container .aie-dropdown-container .aie-dropdown-item .red-dot-container {
  display: flex;
  width: 30px;
  overflow: hidden;
  padding-bottom: 5px
}

.aie-container .aie-dropdown-container .aie-dropdown-item .red-dot-container .red-dot {
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--aie-text-color);
  border-bottom: 2px solid var(--aie-text-color);
  rotate: -45deg;
  margin: auto
}

.aie-container .aie-dropdown-container .aie-dropdown-item:hover {
  background: var(--aie-popover-selected-color);
  cursor: pointer
}

.aie-container .aie-dropdown-container .emoji-cells {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 3px
}

.aie-container .aie-dropdown-container .emoji-cells .emoji-cell {
  margin: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 1px;
  border-radius: 3px
}

.aie-container .aie-dropdown-container .emoji-cells .emoji-cell span {
  margin-top: 2px
}

.aie-container .aie-dropdown-container .emoji-cells .emoji-cell:hover {
  background: var(--aie-popover-selected-color)
}

.aie-container .aie-dropdown-container #table-cells .table-cell {
  border: solid 1px var(--aie-menus-table-cell-border-color)
}

.aie-container .aie-dropdown-container #table-cells .active {
  background: var(--aie-popover-selected-color)
}

.aie-container .aie-dropdown-container .color-panel {
  margin: 0 5px
}

.aie-container .aie-dropdown-container .color-panel-title {
  padding-top: 5px;
  font-size: 14px;
  color: var(--aie-popover-title-color)
}

.aie-container .aie-dropdown-container .color-panel-default-button {
  text-align: center;
  border: 1px solid var(--aie-button-border-color);
  color: var(--aie-popover-title-color);
  line-height: 24px;
  font-size: 14px;
  border-radius: 3px
}

.aie-container .aie-dropdown-container .color-panel-default-button, .aie-container .aie-dropdown-container .color-item, .aie-container .aie-dropdown-container .history-color-item {
  cursor: pointer
}

.aie-container .aie-resize-wrapper {
  position: relative;
  display: inline-flex
}

.aie-container .aie-resize-wrapper img {
  position: relative
}

.aie-container .aie-resize-wrapper:hover .aie-resize {
  display: inline-block
}

.aie-container .aie-resize-wrapper .aie-resize {
  display: none;
  position: absolute;
  top: -2px;
  left: -2px;
  border: 2px solid #609eec;
  width: 100%;
  height: 100%
}

.aie-container .aie-resize-wrapper .aie-resize div {
  position: absolute;
  display: flex;
  width: 20px;
  height: 20px;
  z-index: 1
}

.aie-container .aie-resize-wrapper .aie-resize div:after {
  content: "";
  display: block;
  margin: auto;
  width: 8px;
  height: 8px;
  background: #609eec;
  border-radius: 50%
}

.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-top-left {
  left: -10px;
  top: -10px;
  cursor: nwse-resize
}

.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-top-right {
  right: -10px;
  top: -10px;
  cursor: nesw-resize
}

.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-bottom-left {
  left: -10px;
  bottom: -10px;
  cursor: nesw-resize
}

.aie-container .aie-resize-wrapper .aie-resize .aie-resize-btn-bottom-right {
  right: -10px;
  bottom: -10px;
  cursor: nwse-resize
}

.aie-container .aie-loader-placeholder {
  width: 200px;
  height: 200px;
  background: #efefef;
  display: flex
}

.aie-container .aie-loader-placeholder svg {
  margin: auto;
  width: 80px;
  fill: #ccc;
  animation: rotate 2s linear infinite
}

@keyframes rotate {
  0% {
    transform: rotate(0)
  }
  to {
    transform: rotate(360deg)
  }
}

.aie-container .aie-codeblock-wrapper {
  background: var(--aie-content-pre-bg-color);
  word-wrap: normal;
  white-space: normal;
  padding-top: 5px;
  border-radius: 5px
}

.aie-container .aie-codeblock-wrapper:hover .aie-codeblock-tools {
  display: flex
}

.aie-container .aie-codeblock-wrapper .aie-codeblock-tools {
  display: flex;
  justify-content: flex-end
}

.aie-container .aie-codeblock-wrapper .aie-codeblock-tools div {
  color: var(--aie-text-color);
  display: flex;
  cursor: pointer;
  align-items: center;
  font-size: 14px;
  margin: 0 3px
}

.aie-container .aie-codeblock-wrapper .aie-codeblock-tools-lang svg {
  fill: var(--aie-text-color);
  margin: 2px;
  height: 16px;
  width: 16px
}

.aie-container .aie-codeblock-wrapper .aie-codeblock-tools-autowrap {
  margin: 0 10px
}

.aie-container .aie-codeblock-wrapper .aie-codeblock-tools-autowrap svg {
  fill: var(--aie-text-color);
  margin: 2px;
  height: 14px;
  width: 14px
}

.aie-container .aie-codeblock-langs {
  background: var(--aie-popover-bg-color);
  width: 150px;
  max-height: 300px;
  overflow: auto;
  border: solid 1px var(--aie-popover-border-color);
  color: var(--aie-menus-text-color)
}

.aie-container .aie-codeblock-langs-item {
  padding: 5px;
  font-size: 14px;
  height: 20px;
  line-height: 20px;
  cursor: pointer
}

.aie-container .aie-codeblock-langs-item:hover {
  background: var(--aie-popover-selected-color)
}

.aie-container .container-wrapper:hover .aie-container-tools {
  display: flex
}

.aie-container div.info {
  background: var(--aie-content-container-info-color)
}

.aie-container div.warning {
  background: var(--aie-content-container-warning-color)
}

.aie-container div.danger {
  background: var(--aie-content-container-danger-color)
}

.aie-container .aie-container-tools {
  width: 40px;
  height: 20px;
  position: absolute;
  top: 5px;
  right: 5px;
  display: none;
  justify-content: center;
  align-items: center;
  background: var(--aie-button-bg-color);
  border: solid 1px var(--aie-button-border-color);
  padding: 3px 5px;
  border-radius: 3px;
  cursor: pointer
}

.aie-container .aie-container-tools:hover {
  background: var(--aie-button-hover-bg-color);
  border-color: var(--aie-button-hover-border-color)
}

.aie-container .aie-container-tools-body {
  width: fit-content;
  height: fit-content;
  background: var(--aie-popover-bg-color);
  border: solid 1px var(--aie-button-border-color);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-radius: 3px;
  color: var(--aie-text-color)
}

.aie-container .aie-container-tools-body-color-items {
  display: flex;
  gap: 5px
}

.aie-container .aie-container-tools-body-color-box {
  width: 20px;
  height: 20px;
  border: 1px solid var(--aie-popover-border-color);
  cursor: pointer
}

.aie-container aie-footer > div {
  border-top: solid 1px var(--aie-border-color);
  height: 20px;
  line-height: 20px;
  font-size: 14px;
  text-align: right;
  color: #666
}

.aie-container aie-footer > div span {
  margin-left: auto
}

.aie-container aie-footer > div svg {
  fill: #666;
  rotate: -45deg;
  transform: translateY(5px);
  cursor: nwse-resize
}

.aie-container .tippy-box {
  max-width: 1000px !important
}

.aie-container .tippy-box[data-animation=fade][data-state=hidden] {
  opacity: 0
}

.aie-container [data-tippy-root] {
  max-width: calc(100vw - 10px)
}

.aie-container .tippy-box {
  position: relative;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
  outline: 0;
  transition-property: transform, visibility, opacity
}

.aie-container .tippy-box[data-placement^=top] > .tippy-arrow {
  bottom: 0
}

.aie-container .tippy-box[data-placement^=top] > .tippy-arrow:before {
  bottom: -7px;
  left: 0;
  border-width: 8px 8px 0;
  border-top-color: initial;
  transform-origin: center top
}

.aie-container .tippy-box[data-placement^=bottom] > .tippy-arrow {
  top: 0
}

.aie-container .tippy-box[data-placement^=bottom] > .tippy-arrow:before {
  top: -7px;
  left: 0;
  border-width: 0 8px 8px;
  border-bottom-color: initial;
  transform-origin: center bottom
}

.aie-container .tippy-box[data-placement^=left] > .tippy-arrow {
  right: 0
}

.aie-container .tippy-box[data-placement^=left] > .tippy-arrow:before {
  border-width: 8px 0 8px 8px;
  border-left-color: initial;
  right: -7px;
  transform-origin: center left
}

.aie-container .tippy-box[data-placement^=right] > .tippy-arrow {
  left: 0
}

.aie-container .tippy-box[data-placement^=right] > .tippy-arrow:before {
  left: -7px;
  border-width: 8px 8px 8px 0;
  border-right-color: initial;
  transform-origin: center right
}

.aie-container .tippy-box[data-inertia][data-state=visible] {
  transition-timing-function: cubic-bezier(.54, 1.5, .38, 1.11)
}

.aie-container .tippy-arrow {
  width: 16px;
  height: 16px
}

.aie-container .tippy-arrow:before {
  content: "";
  position: absolute;
  border-color: transparent;
  border-style: solid
}

.aie-container .tippy-content {
  position: relative;
  padding: 5px 9px;
  z-index: 1
}

.aie-container .tippy-box[data-theme~=aietip] {
  background-color: var(--aie-menus-tip-bg-color);
  color: var(--aie-menus-tip-text-color)
}

.aie-container .tippy-box[data-theme~=aietip][data-placement^=top] > .tippy-arrow:before {
  border-top-color: var(--aie-menus-tip-bg-color)
}

.aie-container .tippy-box[data-theme~=aietip][data-placement^=bottom] > .tippy-arrow:before {
  border-bottom-color: var(--aie-menus-tip-bg-color)
}

.aie-container .tippy-box[data-theme~=aietip][data-placement^=left] > .tippy-arrow:before {
  border-left-color: var(--aie-menus-tip-bg-color)
}

.aie-container .tippy-box[data-theme~=aietip][data-placement^=right] > .tippy-arrow:before {
  border-right-color: var(--aie-menus-tip-bg-color)
}

.aie-theme-light pre code.hljs {
  display: block;
  overflow-x: auto;
  padding: 1em
}

.aie-theme-light code.hljs {
  padding: 3px 5px
}

.aie-theme-light .hljs {
  color: #383a42;
}

.aie-theme-light .hljs-comment, .aie-theme-light .hljs-quote {
  color: #a0a1a7;
  font-style: italic
}

.aie-theme-light .hljs-doctag, .aie-theme-light .hljs-keyword, .aie-theme-light .hljs-formula {
  color: #a626a4
}

.aie-theme-light .hljs-section, .aie-theme-light .hljs-name, .aie-theme-light .hljs-selector-tag, .aie-theme-light .hljs-deletion, .aie-theme-light .hljs-subst {
  color: #e45649
}

.aie-theme-light .hljs-literal {
  color: #0184bb
}

.aie-theme-light .hljs-string, .aie-theme-light .hljs-regexp, .aie-theme-light .hljs-addition, .aie-theme-light .hljs-attribute, .aie-theme-light .hljs-meta .hljs-string {
  color: #50a14f
}

.aie-theme-light .hljs-attr, .aie-theme-light .hljs-variable, .aie-theme-light .hljs-template-variable, .aie-theme-light .hljs-type, .aie-theme-light .hljs-selector-class, .aie-theme-light .hljs-selector-attr, .aie-theme-light .hljs-selector-pseudo, .aie-theme-light .hljs-number {
  color: #986801
}

.aie-theme-light .hljs-symbol, .aie-theme-light .hljs-bullet, .aie-theme-light .hljs-link, .aie-theme-light .hljs-meta, .aie-theme-light .hljs-selector-id, .aie-theme-light .hljs-title {
  color: #4078f2
}

.aie-theme-light .hljs-built_in, .aie-theme-light .hljs-title.class_, .aie-theme-light .hljs-class .hljs-title {
  color: #c18401
}

.aie-theme-light .hljs-emphasis {
  font-style: italic
}

.aie-theme-light .hljs-strong {
  font-weight: 700
}

.aie-theme-light .hljs-link {
  text-decoration: underline
}

.aie-theme-dark pre code.hljs {
  display: block;
  overflow-x: auto;
  padding: 1em
}

.aie-theme-dark code.hljs {
  padding: 3px 5px
}

.aie-theme-dark .hljs {
  color: #abb2bf;
  background: #282c34
}

.aie-theme-dark .hljs-comment, .aie-theme-dark .hljs-quote {
  color: #5c6370;
  font-style: italic
}

.aie-theme-dark .hljs-doctag, .aie-theme-dark .hljs-keyword, .aie-theme-dark .hljs-formula {
  color: #c678dd
}

.aie-theme-dark .hljs-section, .aie-theme-dark .hljs-name, .aie-theme-dark .hljs-selector-tag, .aie-theme-dark .hljs-deletion, .aie-theme-dark .hljs-subst {
  color: #e06c75
}

.aie-theme-dark .hljs-literal {
  color: #56b6c2
}

.aie-theme-dark .hljs-string, .aie-theme-dark .hljs-regexp, .aie-theme-dark .hljs-addition, .aie-theme-dark .hljs-attribute, .aie-theme-dark .hljs-meta .hljs-string {
  color: #98c379
}

.aie-theme-dark .hljs-attr, .aie-theme-dark .hljs-variable, .aie-theme-dark .hljs-template-variable, .aie-theme-dark .hljs-type, .aie-theme-dark .hljs-selector-class, .aie-theme-dark .hljs-selector-attr, .aie-theme-dark .hljs-selector-pseudo, .aie-theme-dark .hljs-number {
  color: #d19a66
}

.aie-theme-dark .hljs-symbol, .aie-theme-dark .hljs-bullet, .aie-theme-dark .hljs-link, .aie-theme-dark .hljs-meta, .aie-theme-dark .hljs-selector-id, .aie-theme-dark .hljs-title {
  color: #61aeee
}

.aie-theme-dark .hljs-built_in, .aie-theme-dark .hljs-title.class_, .aie-theme-dark .hljs-class .hljs-title {
  color: #e6c07b
}

.aie-theme-dark .hljs-emphasis {
  font-style: italic
}

.aie-theme-dark .hljs-strong {
  font-weight: 700
}

.aie-theme-dark .hljs-link {
  text-decoration: underline
}

.aie-popover {
  min-width: 100px;
  min-height: 100px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px 2px #0000001a;
  background: var(--aie-popover-bg-color);
  border: 1px solid var(--aie-popover-border-color);
  border-radius: 3px
}

.aie-popover-header {
  height: 20px;
  display: flex;
  padding: 5px 5px 0
}

.aie-popover-header-close {
  height: 20px;
  width: 20px;
  margin-left: auto;
  cursor: pointer
}

.aie-popover-header svg {
  fill: var(--aie-text-color)
}

.aie-popover-content {
  flex-grow: 1;
  padding: 0 10px
}

.aie-popover-content > div {
  color: var(--aie-text-color);
  font-size: 14px
}

.aie-popover-content input, .aie-popover-content select, .aie-popover-content textarea {
  border: solid 1px var(--aie-input-border-color);
  height: 25px;
  padding-inline: 5px;
  border-radius: 3px;
  background: var(--aie-input-bg-color);
  color: var(--aie-text-color)
}

.aie-popover-content input:focus-visible, .aie-popover-content select:focus-visible, .aie-popover-content textarea:focus-visible {
  outline: 0;
  border: solid 1px var(--aie-input-focus-border-color);
  background-color: var(--aie-input-focus-bg-color)
}

.aie-popover-content select {
  height: 30px
}

.aie-popover-footer {
  display: flex;
  padding: 10px;
  justify-content: flex-end;
  align-items: center;
  gap: 10px
}

.aie-popover-footer button {
  color: var(--aie-text-color);
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: 2px
}

.aie-popover-footer button svg {
  width: 14px;
  height: 14px;
  fill: var(--aie-text-color)
}

.aie-popover-footer-confirm {
  background: var(--aie-button-bg-color);
  border: solid 1px var(--aie-button-border-color)
}

.aie-popover-footer-confirm:hover {
  background: var(--aie-button-hover-bg-color);
  border-color: var(--aie-button-hover-border-color)
}

.aie-popover-footer-cancel {
  border: none;
  background: none
}

.aie-popover-footer-cancel:hover {
  background: var(--aie-button-hover-bg-color);
  border-color: var(--aie-button-hover-border-color)
}

.ai-command-container {
  width: 200px;
  border: solid 1px;
  border-color: var(--aie-popover-border-color);
  background: var(--aie-popover-bg-color);
  color: var(--aie-text-color);
  border-radius: 5px;
  box-shadow: 0 0 7px #0000001a;
  display: flex;
  padding: 10px 0;
  flex-direction: column
}

.ai-command-container .active {
  background: var(--aie-popover-selected-color)
}

.ai-command-container-title {
  width: 100%;
  height: 1px;
  background-color: #eaeaea;
  border: none;
  margin: 5px 0
}

.ai-command-container hr {
  width: 100%;
  height: 1px;
  background-color: var(--aie-popover-border-color);
  border: none;
  margin: 5px 0
}

.ai-command-container-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 10px
}

.ai-command-container-header-item {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer
}

.ai-command-container-header-item:hover {
  background-color: var(--aie-popover-selected-color)
}

.ai-command-container-header svg {
  fill: var(--aie-text-color);
  width: 18px;
  height: 18px
}

.ai-command-container-item {
  padding: 10px 20px;
  font-family: Arial, Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif;
  font-size: 14px;
  color: var(--aie-text-color);
  display: flex;
  align-items: center;
  cursor: pointer
}

.ai-command-container-item svg {
  width: 16px;
  height: 16px;
  margin-right: 10px
}

.ai-command-container-item:hover {
  background-color: var(--aie-popover-selected-color)
}

.aie-content {
  overflow: auto;
  padding: 10px;
  margin: 0;
  color: var(--aie-text-color)
}

.aie-content > :first-child {
  margin-top: 0
}

.aie-content::-webkit-scrollbar {
  width: 4px
}

.aie-content::-webkit-scrollbar-track-piece {
  background-color: var(--aie-content-scrollbar-track-piece)
}

.aie-content::-webkit-scrollbar-thumb {
  background-color: var(--aie-content-scrollbar-thumb)
}

.aie-content::-webkit-scrollbar-thumb:hover {
  background-color: var(--aie-content-scrollbar-thumb-hover)
}

.aie-content::-webkit-scrollbar-thumb:active {
  background-color: var(--aie-content-scrollbar-thumb-active)
}

.aie-content a {
  color: var(--aie-content-link-a-color)
}

.aie-content a :visited {
  color: var(--aie-content-link-a-visited-color)
}

.aie-content a :active {
  color: var(--aie-content-link-a-active-color)
}

.aie-content p {
  margin: 16px 0;
  line-height: 26px;
  min-height: 26px
}

.aie-content ul, .aie-content ol {
  display: block;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  padding-inline-start: 20px
}

.aie-content li p {
  padding: 0;
  margin: 5px 0
}

.aie-content ul[data-type=taskList] {
  display: block;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  padding-inline-start: 0px
}

.aie-content ul[data-type=taskList] li {
  display: flex;
  align-items: baseline
}

.aie-content ul[data-type=taskList] li p {
  padding-left: 2px
}

.aie-content blockquote {
  margin: 16px 0;
  padding: 5px 10px;
  border-left: 2px solid var(--aie-content-blockquote-border-color);
  background: var(--aie-content-blockquote-bg-color)
}

.aie-content blockquote p {
  margin: 5px 0;
  color: var(--aie-content-blockquote-text-color)
}

.aie-content img {
  border: 1px solid #efefef
}

.aie-content code {
  border-radius: 3px;
  padding: 3px 6px;
  background: var(--aie-content-pre-bg-color)
}

.aie-content pre {
  margin: 0;
  padding: 0 10px 10px;
  border-radius: 5px;
  background: var(--aie-content-pre-bg-color);
  overflow: auto
}

.aie-content pre code {
  padding: 0;
  background: var(--aie-content-pre-bg-color)
}

.aie-content h1 {
  padding-top: 24px;
  letter-spacing: -.02em;
  line-height: 40px;
  font-size: 32px
}

.aie-content h2 {
  padding-top: 24px;
  letter-spacing: -.02em;
  line-height: 32px;
  font-size: 24px
}

.aie-content h3 {
  margin: 32px 0 0;
  letter-spacing: -.01em;
  line-height: 28px;
  font-size: 20px
}

.aie-content strong {
  font-weight: 600
}

.aie-content table {
  border-collapse: collapse;
  margin: 0;
  overflow: hidden;
  table-layout: fixed;
  width: 100%
}

.aie-content table td, .aie-content table th {
  border: 2px solid var(--aie-content-table-border-color);
  box-sizing: border-box;
  min-width: 1em;
  padding: 3px 5px;
  position: relative;
  vertical-align: top
}

.aie-content table td > *, .aie-content table th > * {
  margin-bottom: 0
}

.aie-content table th {
  background-color: var(--aie-content-table-th-bg-color);
  font-weight: 700;
  text-align: left
}

.aie-content table .selectedCell:after {
  background: var(--aie-content-table-selected-bg-color);
  content: "";
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2
}

.aie-content table .column-resize-handle {
  background-color: var(--aie-content-table-handler-color);
  bottom: -2px;
  position: absolute;
  right: -2px;
  pointer-events: none;
  top: 0;
  width: 3px
}

.aie-content table p {
  margin: 0
}

.aie-content .align-left {
  text-align: left
}

.aie-content .align-right {
  text-align: right
}

.aie-content .align-center {
  text-align: center
}

.aie-content span[data-type=mention] {
  border: 1px solid #cccccc;
  border-radius: 5px;
  padding: 0 3px
}

.aie-content p.is-editor-empty:first-child:before {
  color: var(--aie-text-placeholder-color);
  content: attr(data-placeholder);
  float: left;
  height: 0;
  pointer-events: none
}

.aie-content div.container-wrapper {
  margin: 1rem 0;
  padding: 0 1rem;
  border: 1px solid var(--aie-border-color);
  border-radius: 3px
}

.aie-content div.info {
  background: var(--aie-content-container-info-color)
}

.aie-content div.warning {
  background: var(--aie-content-container-warning-color)
}

.aie-content div.danger {
  background: var(--aie-content-container-danger-color)
}

.tableWrapper {
  padding: 1rem 0
}

.resize-cursor {
  cursor: ew-resize;
  cursor: col-resize
}
